package com.example.demo.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.domain.Like;
import com.example.demo.mapper.LikeMapper;

@Service
public class LikeServiceImpl implements LikeService{
	private final Logger logger = LoggerFactory.getLogger(this.getClass());

	@Autowired
	LikeMapper likeMapper;
	@Override
	public List<Like> getLikesOfArticleByAid(Long aid) {
		logger.info("----"+"LikeServiceImpl.getLikesOfArticleByAid(): ");
		return likeMapper.selectAllLikesByAid(aid);
	}

}
